package com.xique.door.service;

import com.xique.door.bean.domain.DAdvert;
import com.xique.door.bean.request.advert.AdvertSearchRequest;

import java.util.List;

/**
 * 门禁广告Service接口
 * 
 * @author caogq
 * @date 2022-03-11
 */
public interface IDAdvertService 
{
    /**
     * 查询门禁广告
     * 
     * @param id 门禁广告ID
     * @return 门禁广告
     */
    public DAdvert selectDAdvertById(Long id);

    /**
     * 查询门禁广告列表
     * 
     * @param dAdvert 门禁广告
     * @return 门禁广告集合
     */
    public List<DAdvert> selectDAdvertList(DAdvert dAdvert);

    /**
     * 新增门禁广告
     * 
     * @param dAdvert 门禁广告
     * @return 结果
     */
    public int insertDAdvert(DAdvert dAdvert);

    /**
     * 修改门禁广告
     * 
     * @param dAdvert 门禁广告
     * @return 结果
     */
    public int updateDAdvert(DAdvert dAdvert);

    /**
     * 批量删除门禁广告
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteDAdvertByIds(String ids);

    /**
     * 删除门禁广告信息
     * 
     * @param id 门禁广告ID
     * @return 结果
     */
    public int deleteDAdvertById(Long id);

    public List<DAdvert> conditionSearchAdvertList(AdvertSearchRequest request);
}
